<%@ page import="java.util.Date" %>
<%@page language="java" pageEncoding="UTF-8" %>
<%@ include file="/pages/common/taglib.jsp" %>
<!doctype html>
<html lang="en">
<head>
    <%@ include file="/pages/common/meta.jsp" %>
    <title>首页</title>
    <%@ include file="/pages/common/css.jsp" %>
</head>
<body>
<%@include file="/pages/common/top.jsp" %>

<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <div class="main-container-inner">
        <%@include file="/pages/common/menu.jsp" %>

        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <script type="text/javascript">
                    try {
                        ace.settings.check('breadcrumbs', 'fixed')
                    } catch (e) {
                    }
                </script>

                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home home-icon"></i>
                        <a href="${ctx}/portal/home">首页</a>
                    </li>
                </ul>
                <!-- .breadcrumb -->
                <!-- #nav-search -->
            </div>

            <div class="page-content">
                <div class="row" style="height: 70px;text-align: right;padding-right: 30px;">
                    您当前已登录：
                    <h3 style="display: inline-block;font-family: 'Microsoft Yahei';margin-right: 10px;">
                        ${hotel.name}
                    </h3>管理页！今天是
                    <h3 style="display: inline-block;font-family: 'Microsoft Yahei';" id="show_time">
                        <fmt:formatDate value="<%=new Date()%>" type="date" dateStyle="full"></fmt:formatDate>
                    </h3>
                </div>
                <div class="row">
                    <div class="col-xs-12 col-sm-6 widget-container-span ui-sortable">
                        <div class="widget-box">
                            <div class="widget-header">
                                <h5>订单概况</h5>
                                <div class="widget-toolbar">
                                    <a href="${ctx}/order/home" style="font-size: 12px;">
                                        <i class="icon-link"></i>
                                        订单管理
                                    </a>
                                </div>
                            </div>

                            <div class="widget-body">
                                <div class="widget-main text-center portal-box" style="height: 200px;">
                                    <div class="col-xs-3">
                                        <p class="radius-4">总订单量</p>
                                        <h4 id="orderTotalCnt"></h4>
                                    </div>
                                    <div class="col-xs-3">
                                        <p class="radius-4">有效订单量</p>
                                        <h4 id="orderValidCnt"></h4>
                                    </div>
                                    <div class="col-xs-3">
                                        <p class="radius-4">待确认订单</p>
                                        <h4 id="orderNeedAuthCnt"></h4>
                                    </div>
                                    <div class="col-xs-3">
                                        <p class="radius-4">夜归人订单量</p>
                                        <h4 id="orderNightBackUserCnt"></h4>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <%--<div class="col-xs-12 col-sm-6 widget-container-span ui-sortable">
                        <div class="widget-box">
                            <div class="widget-header">
                                <h5>夜归人概况</h5>
                                <div class="widget-toolbar">
                                    <a href="#" style="font-size: 12px;">
                                        <i class="icon-link"></i>
                                        夜归人管理
                                    </a>
                                </div>
                            </div>

                            <div class="widget-body">
                                <div class="widget-main text-center portal-box">
                                    <div class="col-xs-4">
                                        <p class="radius-4">当前状态</p>
                                        <h4 id="nightBackUserStatus">
                                            <span class="label label-success arrowed-in arrowed-in-right">启用</span>
                                        </h4>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4">开始时间</p>
                                        <h4 id="nightBackUserTime">00:00 - 04:00</h4>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4">夜归人房型</p>
                                        <h4 id="nightBackUserRoomTypeCnt">3</h4>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>--%>

                    <div class="col-xs-12 col-sm-6 widget-container-span ui-sortable">
                        <div class="widget-box">
                            <div class="widget-header">
                                <h5>0元住活动</h5>
                                <div class="widget-toolbar">
                                    <a href="${ctx}/activity/home" style="font-size: 12px;">
                                        <i class="icon-link"></i>
                                        0元住管理
                                    </a>
                                </div>
                            </div>

                            <div class="widget-body">
                                <div class="widget-main portal-box text-center" style="height: 200px;">
                                    <div class="col-xs-4">
                                        <p class="radius-4" title="最新的抢房节活动状态">抢房节活动状态</p>
                                        <h4 style="height: 60px;" id="roomActStatus">

                                        </h4>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4" title="最新的抢房节活动起止时间">抢房节起止时间</p>
                                        <h5 style="height: 60px;" id="roomActTime">
                                        </h5>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4" title="最新的抢房节参与房型总数量">抢房节房型总量</p>
                                        <h4 style="height: 60px;" id="roomActTotalRoomCnt"></h4>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4" title="您的酒店最新的抢房节需要参与的房型数量">酒店参与房型数量</p>
                                        <h4 style="height: 60px;" id="roomActHotelRoomCnt"></h4>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4" title="您的酒店本年度已经参与的抢房节房型数量">酒店今年已参与房量</p>
                                        <h4 style="height: 60px;" id="roomActHotelUsedRoomCnt"></h4>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4" title="您的酒店最新的抢房节已经被抢购的房型数量">酒店最近已被抢购房量</p>
                                        <h4 style="height: 60px;" id="roomActInvolveRoomCnt"></h4>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-xs-12 col-sm-6 widget-container-span ui-sortable">
                        <div class="widget-box">
                            <div class="widget-header">
                                <h5>待处理订单</h5>
                                <div class="widget-toolbar">
                                    <a href="${ctx}/order/home" style="font-size: 12px;">
                                        <i class="icon-link"></i>
                                        订单管理
                                    </a>
                                </div>
                            </div>

                            <div class="widget-body">
                                <div class="widget-main text-center portal-box" id="newOrder" style="height: 260px;">

                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-xs-12 col-sm-6 widget-container-span ui-sortable">
                        <div class="widget-box">
                            <div class="widget-header">
                                <h5>最新消息</h5>
                                <div class="widget-toolbar">
                                    <a href="${ctx}/msg/home" style="font-size: 12px;">
                                        <i class="icon-link"></i>
                                        消息中心
                                    </a>
                                </div>
                            </div>

                            <div class="widget-body">
                                <div class="widget-main portal-box" id="recentlyMsg" style="height:260px;">

                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-xs-12 col-sm-6 widget-container-span ui-sortable">
                        <div class="widget-box">
                            <div class="widget-header">
                                <h5>房型概况</h5>
                                <div class="widget-toolbar">
                                    <a href="${ctx}/room/home" style="font-size: 12px;">
                                        <i class="icon-link"></i>
                                        房型管理
                                    </a>
                                </div>
                            </div>

                            <div class="widget-body">
                                <div class="widget-main text-center portal-box">
                                    <div class="col-xs-4">
                                        <p class="radius-4">房型总量</p>
                                        <h4 id="roomTypeTotalCnt"></h4>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4">上架房型量</p>
                                        <h4 id="roomTypeOnlineCnt"></h4>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4">未上架房型量</p>
                                        <h4 id="roomTypeOfflineCnt"></h4>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-xs-12 col-sm-6 widget-container-span ui-sortable">
                        <div class="widget-box">
                            <div class="widget-header">
                                <h5>最新评论</h5>
                                <div class="widget-toolbar">
                                    <a href="#" style="font-size: 12px;">
                                        <i class="icon-link"></i>
                                        评论管理
                                    </a>
                                </div>
                            </div>

                            <div class="widget-body">
                                <div class="widget-main text-center portal-box">
                                    <div class="col-xs-4">
                                        <p class="radius-4">总评论数</p>
                                        <h4 id="evaludateTotalCnt"></h4>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4">平均评分</p>
                                        <h4 id="evaludateAvgScore"></h4>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4">今日评论数</p>
                                        <h4 id="evaludateTodayCnt"></h4>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-xs-12 col-sm-6 widget-container-span ui-sortable">
                        <div class="widget-box">
                            <div class="widget-header">
                                <h5>粉丝概况</h5>
                                <div class="widget-toolbar">
                                    <a href="${ctx}/vip/home" style="font-size: 12px;">
                                        <i class="icon-link"></i>
                                        粉丝管理
                                    </a>
                                </div>
                            </div>

                            <div class="widget-body">
                                <div class="widget-main text-center portal-box">
                                    <div class="col-xs-4">
                                        <p class="radius-4">总粉丝数</p>
                                        <h4 id="vipTotalCnt"></h4>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4">待审核粉丝数</p>
                                        <h4 id="vipNeedAuthCnt"></h4>
                                    </div>
                                    <div class="col-xs-4">
                                        <p class="radius-4">今日新增粉丝数</p>
                                        <h4 id="vipTodayCnt"></h4>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- /.row -->
                </div>
                <!-- /.page-content -->
            </div>
            <!-- /.main-content -->
            <!-- /#ace-settings-container -->
        </div>
        <!-- /.main-container-inner -->

        <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
            <i class="icon-double-angle-up icon-only bigger-110"></i>
        </a>
    </div>
</div>
<!-- /.main-container -->

<%@ include file="/pages/common/js.jsp" %>
<script src="${ctx}/assets/js/portal/portal.js"></script>
</body>
</html>